package createThread.cn.tedu.threaddemo.test1.Anonymous.test1;

public class Test1 {
    private static int a = 10;
    private int b = 20;
    int c = 30;
    static int d = 40;
    public void testNotStatic(){
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
    }
    public static void testIsStatic(){
        System.out.println(a); //可以访问
//        System.out.println(b); //不可以访问
//        System.out.println(c); //不可以访问
        System.out.println(d); //可以访问
    }

    public static void main(String[] args) {
        Test1 test1 = new Test1();
        test1.testNotStatic();
        test1.testIsStatic();
    }
}
